Skip to content
This repository was archived by the owner on Apr 11, 2023. It is now read-only.

Comments

Migration from irma_api_server to irmago server#1

Open
rolandgroen wants to merge 1 commit intoprivacybydesign:masterfrom
EdiaEducationTechnology:irmago-server
Open

Migration from irma_api_server to irmago server#1
rolandgroen wants to merge 1 commit intoprivacybydesign:masterfrom
EdiaEducationTechnology:irmago-server

Conversation

@rolandgroen
Copy link

The migration of the simplesamlphp-module-authirma plugin from the irma_api_server (https://github.com/privacybydesign/irma_api_server) to the new irmago server API (https://github.com/privacybydesign/irmago).

The following changes have been applied:

  • The new irmajs library has been integrated, https://github.com/privacybydesign/irmajs in favor of https://github.com/credentials/irma_js.
  • The new API endpoints have been updated.
  • The session now created at the moment the button is clicked, instead of before, preventing timeout issues and refresh problems. The session endpoint is get_irma_session.php.
  • A missing dependency is added in composer.json.
  • Removal of the irma_web_server configuration setting
  • Fixing Undefined index: IRMA_INVALIDCREDENTIALS in /var/simplesamlphp/lib/SimpleSAML/Error/ErrorCodes.php

…ma_api_server (https://github.com/privacybydesign/irma_api_server) to the new irmago server API (https://github.com/privacybydesign/irmago).

The following changes have been applied:

 - The new irmajs library has been integrated, https://github.com/privacybydesign/irmajs in favor of https://github.com/credentials/irma_js.
 - The new API endpoints have been updated.
 - The session now created at the moment the button is clicked, instead of before, preventing timeout issues and refresh problems. The session endpoint is get_irma_session.php.
 - A missing dependency is added in composer.json.
 - Removal of the irma_web_server configuration setting
 - Fixing Undefined index: IRMA_INVALIDCREDENTIALS in /var/simplesamlphp/lib/SimpleSAML/Error/ErrorCodes.php
@joostd joostd self-assigned this Jul 8, 2019
Copy link

@davidv1992 davidv1992 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your pull request, and our apologies for taking a while to respond to it. I have one question surrounding the proposed changes, but other than that they look fine to me.

* On a successful login, this function should return the users attributes. On failure,
* it should throw an exception. If the error was due to invalid IRMA credentials,
* a SimpleSAML_Error_Error('IRMA_INVALIDCREDENTIALS') should be thrown.
* a SimpleSAML_Error_Error('RESPONSESTATUSNOSUCCESS') should be thrown.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the rationale here for wanting to switch to generic errors instead of the IRMA specific ones?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants